import { useRouter } from 'next/router'; export default function CheckoutSlug() { const router = useRouter(); return (

Checkout with slug = {router.query?.slug}!!!

{JSON.stringify(router, undefined, 2)}
); }